<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUserLabelTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_label', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->comment('标签名称');
            $table->tinyInteger('is_show')->comment('是否显示1显示0不显示');
            $table->timestamps();
        });
        DB::statement("ALTER TABLE `user_label` comment '标签表';");

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_label');
    }
}
